#!/bin/bash
echo "安装将花费一定时间，请耐心等待直到安装完成^_^"
if which apt-get >/dev/null; then
	sudo apt-get install -y tar libncurses5-dev
elif which yum >/dev/null; then
	sudo yum install -y tar	libncurses5-dev
fi
 
tar xvfz global/global*.tar.gz -C global/
cd global/global*

./configure
make
sudo make install

echo usage:
echo $ cd project/
echo $ gtags

echo "安装完成"
